// 
import {
	request
} from './request'



// 是否绑定微信
export const isBandingWeChant = () => request('/member/settings/isBanding')

// 积分详情 
export const pointDetail = () => request('/member/point/detail')
// 积分任务 - 分页  
export const pointTasksList = (data) => request('/member/point/tasks',{data:data})
// 积分明细 - 分页   
export const pointLogsList = (data) => request('/member/point/logs',{data:data})


// 个人资料 - 修改
export const putSetUserUpdate = (data) => request('/member/settings/personal', {
	method: 'put',
	data
})
// app个人中心配置刷新接口-个人应用中心配置
export const confMyCenter = (data) => request('/sys/share/confMyCenter', {
	data
})

// 个人资料 - 查询 /member/moment
export const getSetUser = (data) => request('/member/settings/personal', {
	method: 'get',
	data
})
// 他人资料 - 查询 
export const getOtherUser = (data) => request('/member/moment', {
	method: 'get',
	header: {
		plat: 4
	},
	data
})
// 个人中心首页
export const getUserHome = (data) => request('/member/home', {
	method: 'get',
	data
})
// 行业列表
export const industryList = () => request('/sys/industry')
// 行业人脉-推荐行业
export const recommendIndustryList = (data) => request('/sys/sys-anon/common/industry', {
	method: 'post',
	data
})

// 我看过的名片
export const mineBrowseCardList = (data) => request('/member/browse', {
	method: 'get',
	data
})
// 个人-身份列表
export const statusList = (data) => request('/sys/sys-anon/common/status', {
	method: 'post',
	data
})
// 个人-退出
export const userLayout = (data) => request('/member/layoutForH5', {
	method: 'get',
	data
})
// 个人-我的点点  /member/memberChatGroup/my-group
export const getCircleDynamicAll = (data) => request('/circle/circle-dynamic/list/all', {
	method: 'get',
	header: {
		plat: 4
	},
	data
})
// 会员相册视频
export const memberAlbumList = (data) => request('/member/album/list', {
	method: 'get',
	header: {
		plat: 4
	},
	data
})
// 消耗积分查看
export const albumViewByPoint = (data) => request('/member/album/viewByPoint', {
	method: 'post',
	data
})


// 个人-我的群列表
export const getMyGroup = (data) => request('/member/memberChatGroup/my-group', {
	method: 'get',
	data
})
// 个人-群组圈子人员详情
export const getGroupInfo = (data) => request('/member/memberChatGroup/group-info', {
	method: 'get',
	header: {
		plat: 4
	},
	data
})
// 个人-群组圈子详情 /member/circle/notice/list
export const getGroupList = (data) => request('/circle/circle-dynamic/list', {
	method: 'get',
	header: {
		plat: 4
	},
	data
})
// 个人-群组公告列表
export const getNoticeList = (data) => request('/member/circle/notice/list', {
	method: 'post',
	header: {
		plat: 4
	},
	data
})

// 加关注 
export const attentionAdd = (data) => request('/member/add/attention', {
	method: 'post',
	data
})
// 批量取消我的关注
export const attentionDel = (data) => request('/member/manage/attention', {
	method: 'post',
	data
})

// 圈子首页列表 
export const homeCircleList = (data) => request('/member/memberChatGroup/home/circle', {
	method: 'post',
	header: {plat: 4},
	data
})

// 加入圈子
export const circleJoin = (data) => request('/member/memberChatGroup/add-member/code', {
	method: 'post',
	data
})
// 禁用详情 
export const frozenUserInfo = (data) => request('/member/frozen/detail', {
	header: {plat: 4},
	data
})
// 完善信息
export const completeInformation = (data) => request('/member/complete/information', {
	header: {plat: 4},
	data,
	method:'put'
})

// 会员关系挂接  
export const registerConnect = (data) => request('/member/register/connect', {
	data
})
// 最近访客  
export const memberVisitors = (data) => request('/member/visitors', {
	data
})
// 我看过的名片  
export const memberBrowse = (data) => request('/member/browse', {
	data
})
// 我的粉丝/我的关注
export const memberAttention = (data) => request('/member/attention', {
	data
})
// 加关注
export const memberAddAttention = (data) => request('/member/add/attention', {
	method:'post',
	data
})
// 批量取消我的关注
export const memberCancelAttention = (data) => request('/member/manage/attention', {
	method:'post',
	data
})
// 关注企业的列表
export const memberFollowCompany = (data) => request('/member/follow/list', {
	data
})

// 关注企业
export const memberAddCompany = (data) => request('/member/follow/add/'+data.companyId, {
	method:'post',
	data
})

// 取消关注企业
export const memberCancelCompany = (data) => request('/member/follow/remove/'+data.companyId, {
	method:'delete',
	data
})
// 用户通过手机号挂接
export const connectByMobile = (data) => request('/member/register/connectByMobile', {
	method:'post',
	header: {
		...data.header
	},
	data:data.data
})
// 查询当前人挂接人父级信息
export const connectParent = (data) => request('/member/register/connectParent', {
	method:'get',
	data
})

